package com.taxi.driver.module.vo;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.taxi.driver.data.entity.TagEntity;

public class TagVO {

    public static TagVO createFrom(TagEntity entity) {
        if (entity == null) return new TagVO();
        String strJson = JSON.toJSONString(entity);
        return JSON.parseObject(strJson, TagVO.class);
    }

    @JSONField(name = "tagName")
    public String title;//评价标签标题

    @JSONField (name = "tagCount")
    public int number;//评价数
}
